// JavaScript Document

function getinfo()
{
	
 document.payment.tripname.visibility="hidden";
}



function paymentvalidate()
{
	if(document.payment.paymenttype.value=="--Select--")
	{
		alert("please enter the payment type");
		return(false);
	}
	if (document.payment.cardname.value =="")
	{
	document.payment.cardname.focus();
	alert("You must enter your name as on the credit card");
	return (false);
	}

	if (document.payment.cardno.value =="")
	{
	document.payment.cardno.focus();
alert("You must a credit card number");
return (false);
}
if (document.payment.cvv.value =="")
{
document.payment.cvv.focus();
alert("Please enter the 3 digit number behind your credit card");
return (false);
}

alert (" payment success!! have a pleasant journey and a joyful trip ");


}

function chknum()
{
	var e = event || evt; 
	var charCode = e.which || e.keyCode;

	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;
}